package com.yimin.bean;


import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;


@Component
public class CreateBean {


    @Bean
    Snowflake getSnowflakeBean(){
      return   IdUtil.getSnowflake(1, 1);


    }

}
